<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateBrandSeriesTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('brand_series', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('customer_id')->default(0)->comment('客户ID');
			$table->integer('brand_id')->default(0)->comment('品牌ID');
			$table->string('name')->nullable()->comment('品牌系列名称');
			$table->integer('sort')->default(10000)->comment('排序 从小到大');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('brand_series');
	}

}
